#ifndef _CAMER_H_
#define _CAMER_H_
//#include "tools/i2cled.h"
#include "platform.h"
#include <stdio.h>
#include <signal.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
#include <time.h>
#include <malloc.h>
#include <memory.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <pthread.h>
#include <setjmp.h>
#include <linux/videodev2.h>
#include <signal.h>
#include <time.h>
#include <linux/i2c.h>
#include <linux/i2c-dev.h>
#include <assert.h>
#include <pthread.h>
#include "platform.h"
#include "avilib.h"
#include "osd.h"
#include "queue.h"

extern int totalFrame;
extern int playFrame;
extern int decodeFrame;
extern int playFlag;
extern int decodeFlag;
extern int video_freeze_state;
extern int record;
extern int startPlayAvi;
extern int pausePlayAvi;
extern char videoPath[50];
extern char h265Path[50];
extern HI_U32 sensorId;
extern int framew;
extern int frameh;
HI_S32 mppVencStart(PAYLOAD_TYPE_E enType,SIZE_S stSize,HI_U32 u32FrameRate,VPSS_CHN VpssChn, VENC_CHN VencChn,
                                HI_U32 u32Profile, HI_BOOL bRcnRefShareBuf,VENC_GOP_ATTR_S *pstGopAttr,char *path);
HI_S32 mppVencStop(VPSS_CHN VpssChn);
int mppVdecDecode(char *filename);

#endif
